let config = {
  env: process.env.NODE_ENV || 'development',
  configEnv: process.env.CONFIG_ENV || 'devDebug',
  systemBearerToken: 'bfftrip2017',
  serverPort: process.env.SERVER_PORT || 4001,
};

const environments = require('./environments');
const overrides = environments[config.configEnv];
if (overrides) {
  Object.assign(config, overrides(config));
}

config.__DEV__ = config.env === 'development';

module.exports = config;
